package com.chaoyue.content.controller;


import com.chaoyue.content.beans.dto.CourseCategoryTreeDto;
import com.chaoyue.content.service.CourseCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author whr
 * @version 1.0
 * @description: 课程分类接口层
 * @date 2023/12/8 20:54
 */
@SuppressWarnings({"all"})
@Api(value = "课程分类信息管理接口",tags ="课程分类信息管理接口" )
@RestController
public class CourseCategoryController {
    @Autowired
    private CourseCategoryService courseCategoryService;

    @ApiOperation("课程分类信息查询")
    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDto> queryTreeNodes() {
        return courseCategoryService.queryTreeNodes("1");
    }
}
